<template>
  <j-select-biz-component
    :value="value"
    :name="'用户'"
    :width="multiple?1000:800"
    displayKey="realName"
    :returnKeys="returnKeys"
    :listUrl="listUrl"
    :columns="columns"
    :queryParams="{ userType:1 }"
    queryParamText="用户名称"
    v-on="$listeners"
    v-bind="$attrs"
  />
</template>

<script>
import JSelectBizComponent from './JSelectBizComponent'

export default {
  name: 'JSelectRole',
  components: { JSelectBizComponent },
  props: {
    value: {
      type: String,
      default: ''
    },

    listUrl: {
      type: String,
      default: '/cnPositionController/getPageList',
    },
  },

  data() {
    return {
      returnKeys: ['id', 'realName'],
      ellipsisLength: -1,
      columns: [
        { title: '用户姓名', field: 'realName', minWidth: 100 },
        { title: '职位名称', field: 'positionName', minWidth: 100 },
      ]
    }
  }
}
</script>

<style lang="less" scoped></style>
